import threading


class AllPredictionMoel():
    def __init__(self,lip_model,leap_model,speech_model):
        self._lip_model=lip_model
        self._leap_model=leap_model
        self._speech_model=speech_model

    def run(self,gui):
        lip_thread=threading.Thread(target=self._lip_model.run,
                                    args=(gui,0))
        lip_thread.start()

        speech_thread=threading.Thread(target=self._speech_model.run,
                                       args=(gui,))
        speech_thread.start()

        leap_thread=threading.Thread(target=self._leap_model.run,
                                     args=(gui,))
        leap_thread.start()

